<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>找回密码</title>
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery/jquery-3.0.0.min.js"></script>
 	<script type="text/javascript">
  		function changeImg(img){
  			img.src = img.src+"?time="+new Date().getTime();
  		}
  	</script>
</head>
 <body>
  <div align="center">
  	<h1>请输入您的邮箱账号</h1><hr>
  		<form action="${pageContext.request.contextPath }/forgotPasswordByEmail.do" method="POST" >
		<table align="center">
		<tr>
			<td><h1>请输入注册信息注册</h1></td>
		</tr>
		<tr>
			<td><font color="red">${errorMsg }</font></td>
		</tr>
		<tr>
			<td>注册邮箱：</td>
			<td> <input name="email"/></td>
			<td><font color="red">${requestScope.emailMsg }</font></td>
		</tr>
		<tr>
			<td>输入下图验证码：</td>
			<td><input name="valistr"/></td>
			<td><font color="red">${requestScope.valistrMsg }</font></td>
		</tr>
		<tr>
			<td><img title="点击刷新" alt="验证码" src="${pageContext.request.contextPath}/VerificationCode/valiImg.do" onclick="changeImg(this)" style="cursor: pointer;"/></td>			
		</tr>
		<tr>
			<td><input type="hidden" value="<%=session.getAttribute("formuuid")%>"></td>
		</tr>
		<tr>
			<td><input type="submit"  value="重置密码"/></td>
		</tr>
		</table>
	</form>
  </div>
  </body>
</html>